//
//  AppDelegateLaunch.swift
//  BaoKeSwift
//
//  Created by duan on 22/09/2017.
//  Copyright © 2017 geek-duan. All rights reserved.
//

import UIKit

//应用程序启动时相关设置
extension AppDelegate {
    
    // MARK: - 设置根控制器
    func setRootViewController() {
        
        window = UIWindow()
        window?.backgroundColor = UIColor.backgroundColor
        window?.rootViewController = RootViewController()
        window?.makeKeyAndVisible()
        UIApplication.shared.statusBarStyle = .lightContent //电池栏颜色
    }
    
    // MARK: - 加载展示相关信息(个人信息、版本提示、广告等等)
    func loadShowInfo() {
        ReachabilityHelper.shard.startNotifierNotworkStatus() //实时监测网络状况 
    }
}
